/*
 * FXGL - JavaFX Game Library. The MIT License (MIT).
 * Copyright (c) AlmasB (almaslvl@gmail.com).
 * See LICENSE for details.
 */
package com.windea.study.kotlin.fxgl.sample.basics

import com.almasb.fxgl.app.*
import com.almasb.fxgl.dsl.*

/**
 * Shows how to use textures to draw entities.
 *
 * @author Almas Baimagambetov (AlmasB) (almaslvl@gmail.com)
 */
class TextureSample : GameApplication() {
	override fun initSettings(settings: GameSettings) {}
	
	override fun initGame() {
		entityBuilder()
			.at(200.0, 200.0)
			.view("brick.png")
			.buildAndAttach()
	}
}

fun main(args: Array<String>) {
	GameApplication.launch(TextureSample::class.java, args)
}
